package com.yeban.factory.simple_factory;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/11/23
 */
public class Client {

    public static void main(String[] args) {
        // 进入一家咖啡店
        CoffeeStore coffeeStore = new CoffeeStore();
        // 点一杯想要类型的咖啡
        Coffee coffee = coffeeStore.orderCoffee("CappuccinoCoffee");
        // 拿到一杯对应的咖啡
        coffee.addMilk();
        coffee.addSuger();
        System.out.println(coffee.getName());
    }
}
